/**
 * 
 */
package net.sf.cldsql.dj.mvc;

import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import net.sf.cldsql.dj.container.DiContainer;
import net.sf.cldsql.dj.container.base.DiAop;
import net.sf.cldsql.dj.container.base.DiBean;

public class EmptyAop implements DiAop<DiBean> {
    
    final Logger log = LoggerFactory.getLogger(EmptyAop.class);
    
    @SuppressWarnings("unused")
    private DiContainer container;

    public void setContainer (DiContainer container) {
        this.container = container;
    }
    
    public DiBean afterCreate(DiBean delegate, Constructor constructor, Object[] args, DiBean proxy) {
        return proxy;
    }

    public DiBean beforeCreate(DiBean delegate, Constructor constructor, Object[] args) {
        return delegate;
    }
    
    public Object after(DiBean delegate, Method method, Object[] args, Object result) {
        return result;
    }

    public void before(DiBean delegate, Method method, Object[] args) {
    }

    public void error(DiBean delegate, Method method, Object[] args, Exception e) {
    }
    
    public void finalli(DiBean delegate, Method method, Object[] args) {
    }

}
